<?php
/*
 * Created on 03.01.2006
 *
 */
 
class c_setHandler 
{

    function startElement (& $sender, $attrs, $line)
    {
        if (!isset($attrs['value']))
        {
            die ("Attribute value is missing in set tag in line $line\n");
        }
        if (!$attrs['var'])
        {
            die ("Attribute var is missing in set tag in line $line\n");
        }
        $sender->appendCode('$actionform->set('.$attrs['var'].', '.$attrs['value'].');'."\n");
    }
    
    function endElement (& $sender)
    {
    
    }

}

?>
